<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SolrUtils class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solr.examples.html">范例</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrutils.digestxmlresponse.html">SolrUtils::digestXmlResponse</a></div>
 <div class="up"><a href="book.solr.html">Solr</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.solrutils" class="reference">

 <h1 class="title">The SolrUtils class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL solr &gt;= 0.9.2)</p>


  <div class="section" id="solrutils.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Contains utility methods for retrieving the current extension version and preparing query phrases.
   </p>
   <p class="para">Also contains method for escaping query strings and parsing XML responses.</p>
  </div>


  <div class="section" id="solrutils.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">abstract</span>
      <strong class="classname">SolrUtils</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">SolrObject</span><span class="methodname"><a href="solrutils.digestxmlresponse.html" class="methodname">digestXmlResponse</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$xmlresponse</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$parse_mode</code><span class="initializer"> = 0</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">string</span><span class="methodname"><a href="solrutils.escapequerychars.html" class="methodname">escapeQueryChars</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$str</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">string</span><span class="methodname"><a href="solrutils.getsolrversion.html" class="methodname">getSolrVersion</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">string</span><span class="methodname"><a href="solrutils.queryphrase.html" class="methodname">queryPhrase</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$str</code></span>
   )</div>

   }</div>


  </div>

 </div>

 





























<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="solrutils.digestxmlresponse.html">SolrUtils::digestXmlResponse</a> — Parses an response XML string into a SolrObject</li><li><a href="solrutils.escapequerychars.html">SolrUtils::escapeQueryChars</a> — Escapes a lucene query string</li><li><a href="solrutils.getsolrversion.html">SolrUtils::getSolrVersion</a> — Returns the current version of the Solr extension</li><li><a href="solrutils.queryphrase.html">SolrUtils::queryPhrase</a> — Prepares a phrase from an unescaped lucene string</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solr.examples.html">范例</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrutils.digestxmlresponse.html">SolrUtils::digestXmlResponse</a></div>
 <div class="up"><a href="book.solr.html">Solr</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
